package com.example.zzh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author zzh
 * @since 2023-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ZzhProduct对象", description="产品表")
public class ZzhProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品类型id")
    private Long categoryId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "制造商")
    private String mfrs;

    @ApiModelProperty(value = "型号")
    private String model;

    @ApiModelProperty(value = "规格")
    private String standard;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "图片名称")
    private String imgName;

    @ApiModelProperty(value = "计量单位Id")
    private Long unitId;

    @ApiModelProperty(value = "保质期天数")
    private Integer expiryNum;

    @ApiModelProperty(value = "基础重量(kg)")
    private BigDecimal weight;

    @ApiModelProperty(value = "仓位货架")
    private String position;

    @ApiModelProperty(value = "0删除，1启用，2禁用")
    private Integer status;

}
